import re
with open('index.html','r',encoding='utf-8') as f:
    html = re.sub('\n','',f.read())
    # print(html)
    patten = "<div class = 'email'>(.*?)</div>"
    ret_1 = re.findall(patten,html)
    print(ret_1)
    print(type(ret_1))
    print(ret_1[0].strip())
    for i in ret_1:
        print(i.strip())
